package com.ambulance.project.biz.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 对账管理表
 * </p>
 *
 * @author zr
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_trade")
@ApiModel(value="Trade对象", description="对账管理表")
public class Trade extends Model<Trade> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "对账ID")
    @TableId(value = "billID", type = IdType.AUTO)
    private Integer billID;

    @ApiModelProperty(value = "调度标识")
    @TableField("dispatchID")
    private Integer dispatchID;

    @ApiModelProperty(value = "车费")
    @TableField("car_fee")
    private BigDecimal carFee;

    @ApiModelProperty(value = "检车费")
    @TableField("check_car_fee")
    private BigDecimal checkCarFee;

    @ApiModelProperty(value = "药品费")
    @TableField("medicine_fee")
    private BigDecimal medicineFee;

    @ApiModelProperty(value = "结款方式")
    @TableField("pay_type")
    private Integer payType;

    @ApiModelProperty(value = "结算状态")
    @TableField("pay_status")
    private Integer payStatus;

    @ApiModelProperty(value = "缴费流水")
    @TableField("pay_trade")
    private String payTrade;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "医院标识")
    @TableField("uid")
    private Integer uid;

    @ApiModelProperty(value = "流水")
    @TableField("flow")
    private String flow;


    @Override
    protected Serializable pkVal() {
        return this.billID;
    }

}
